[WIP] Check for idle time settings that preventing computing #4634
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the Change
As I worked on #4600 I found it was possible for a user to set their computing preferences in a way that does not allow any computing. If "suspend when not idle" is enabled, and "suspend if idle for" is set to >0, it is possible for the computer to not process any tasks if the first setting is greater than the second. This commit checks for this condition, and if true, will generate an error message. The user will have to modify one of the values in order to save their preferences.
This PR is a work in progress. The commit only checks for local preferences in BOINC Manger. There are a few things I am not familiar with and could use some assistance:
Also, there are a few small items I would like a second opinion on:
Alternate Designs
This could be modified so the user can accept the settings as-is with an OK/Cancel dialogue box. I don't feel this is needed, if someone wanted to suspend a computer they could do so locally.
Release Notes
Fixed indefinite suspension when times were not set correctly.